package com.smart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.common.PageInfo;
import com.smart.model.domain.DictDO;
import com.smart.model.request.DictRequest;
import com.smart.model.vo.DictVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface DictService extends IService<DictDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    DictVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<DictVO> pageQuery(DictRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<DictVO> listQuery(DictRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(DictRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(DictRequest request);

}